package com.tqz.model;

/**
 * 文章模型类
 * 
 * @author 断片先生
 *
 */
public class Article {
	// 文章属性
	private int id;
	private String title;
	private String content;
	private int weight;

	// 构造文章操作方法
	public Article() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public Article(int id, String title, String content, int weight) {
		this.id = id;
		this.title = title;
		this.content = content;
		this.weight = weight;
	}

	@Override
	public String toString() {
		return "文章ID：" + getId() + "\n" + "文章title：" + getTitle() + "\n" + "文章内容：" + getContent() + "\n" + "文章热度："
				+ getWeight() + "\n";
	}
}
